import request from '@/utils/request'
// 获取小区列表
export function getCommunityListApi(body) {
  return request({
    url: '/system/addresses/communityList',
    method: 'post',
    data: body
  });
}

// 获取区域拓展列表
export function getAreaListApi(query, body) {
  return request({
    url: '/system/addresses/list',
    method: 'post',
    params: query,
    data: body
  });
}

// 新增区域
export function addAreaApi(body) {
  return request({
    url: '/system/addresses/add',
    method: 'post',
    data: body
  });
}

// 修改区域
export function updateAreaApi(body) {
  return request({
    url: '/system/addresses/update',
    method: 'post',
    data: body
  });
}

// 删除区域
export function deleteAreaApi(id) {
  return request({
    url: `/system/addresses/remove/${id}`,
    method: 'get'
  });
}
